<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: LogFactory类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pri-static-attribs">静态 Private 属性</a> &#124;
<a href="class_log_factory-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">LogFactory类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>日志工具类  
 <a href="class_log_factory.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_log_factory_8h_source.html">LogFactory.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a9c9749a0261848655106d9742fc9170b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_logs.html">Logs</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_log_factory.html#a9c9749a0261848655106d9742fc9170b">CreateLogs</a> (<a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> iLevel=<a class="el" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9abb2c17c44c343a8367060db4175f39ea">LibTools::LOG_NORMAL</a>, <a class="el" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> sPath=&quot;&quot;)</td></tr>
<tr class="separator:a9c9749a0261848655106d9742fc9170b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad013d71f5198402ec766f00aa28533c5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_logs.html">Logs</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_log_factory.html#ad013d71f5198402ec766f00aa28533c5">CreateLogs</a> (bool bOpenFile)</td></tr>
<tr class="separator:ad013d71f5198402ec766f00aa28533c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaebf813e3bca3090cd3aa4ae9abbd86"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_safe_logs.html">CSafeLogs</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_log_factory.html#afaebf813e3bca3090cd3aa4ae9abbd86">CreateSafeLogs</a> (const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *szLogPath, <a class="el" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> nLogLevel=<a class="el" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9ab9f002c6ffbfd511da8090213227454e">LOG_DEBUG</a>, <a class="el" href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">UINT64</a> nFileMaxSize=<a class="el" href="_safe_log_8h.html#af5f39b12ec7524d513a48e9b662a445a">DEFAULT_LOG_SIZE</a>, <a class="el" href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> nfTime=<a class="el" href="_safe_log_8h.html#acf3ddfcd82496629d7ab869a57f2fedd">DEFAULT_FLUSH_TIME</a>)</td></tr>
<tr class="separator:afaebf813e3bca3090cd3aa4ae9abbd86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa9464faa77b5b85c1b28b852b35e0f4"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_safe_logs.html">CSafeLogs</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_log_factory.html#afa9464faa77b5b85c1b28b852b35e0f4">CreateSafeLogs</a> ()</td></tr>
<tr class="separator:afa9464faa77b5b85c1b28b852b35e0f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fcd1893857b006220c70919d72d358c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_c_safe_logs.html">CSafeLogs</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_log_factory.html#a5fcd1893857b006220c70919d72d358c">GetInstance</a> ()</td></tr>
<tr class="separator:a5fcd1893857b006220c70919d72d358c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afeb7a08f136dec51df1c97e254a14a3e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_c_safe_logs.html">CSafeLogs</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_log_factory.html#afeb7a08f136dec51df1c97e254a14a3e">GetInstancePtr</a> ()</td></tr>
<tr class="separator:afeb7a08f136dec51df1c97e254a14a3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
静态 Private 属性</h2></td></tr>
<tr class="memitem:a2a20e26aee872e31ca8650240012ca5b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_safe_logs.html">CSafeLogs</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_log_factory.html#a2a20e26aee872e31ca8650240012ca5b">g_SafeLogs</a></td></tr>
<tr class="separator:a2a20e26aee872e31ca8650240012ca5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>日志工具类 </p>

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00031">31</a> 行定义.</p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ad013d71f5198402ec766f00aa28533c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad013d71f5198402ec766f00aa28533c5">&#9670;&nbsp;</a></span>CreateLogs() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_logs.html">Logs</a>&gt; LogFactory::CreateLogs </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>bOpenFile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00039">39</a> 行定义.</p>

</div>
</div>
<a id="a9c9749a0261848655106d9742fc9170b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c9749a0261848655106d9742fc9170b">&#9670;&nbsp;</a></span>CreateLogs() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_logs.html">Logs</a>&gt; LogFactory::CreateLogs </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>iLevel</em> = <code><a class="el" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9abb2c17c44c343a8367060db4175f39ea">LibTools::LOG_NORMAL</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a>&#160;</td>
          <td class="paramname"><em>sPath</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00034">34</a> 行定义.</p>

</div>
</div>
<a id="afa9464faa77b5b85c1b28b852b35e0f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa9464faa77b5b85c1b28b852b35e0f4">&#9670;&nbsp;</a></span>CreateSafeLogs() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_c_safe_logs.html">CSafeLogs</a>&gt; LogFactory::CreateSafeLogs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00050">50</a> 行定义.</p>

</div>
</div>
<a id="afaebf813e3bca3090cd3aa4ae9abbd86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaebf813e3bca3090cd3aa4ae9abbd86">&#9670;&nbsp;</a></span>CreateSafeLogs() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_c_safe_logs.html">CSafeLogs</a>&gt; LogFactory::CreateSafeLogs </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> *&#160;</td>
          <td class="paramname"><em>szLogPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a>&#160;</td>
          <td class="paramname"><em>nLogLevel</em> = <code><a class="el" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9ab9f002c6ffbfd511da8090213227454e">LOG_DEBUG</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">UINT64</a>&#160;</td>
          <td class="paramname"><em>nFileMaxSize</em> = <code><a class="el" href="_safe_log_8h.html#af5f39b12ec7524d513a48e9b662a445a">DEFAULT_LOG_SIZE</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a>&#160;</td>
          <td class="paramname"><em>nfTime</em> = <code><a class="el" href="_safe_log_8h.html#acf3ddfcd82496629d7ab869a57f2fedd">DEFAULT_FLUSH_TIME</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00044">44</a> 行定义.</p>

</div>
</div>
<a id="a5fcd1893857b006220c70919d72d358c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5fcd1893857b006220c70919d72d358c">&#9670;&nbsp;</a></span>GetInstance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_c_safe_logs.html">CSafeLogs</a>&amp; LogFactory::GetInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00055">55</a> 行定义.</p>

</div>
</div>
<a id="afeb7a08f136dec51df1c97e254a14a3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afeb7a08f136dec51df1c97e254a14a3e">&#9670;&nbsp;</a></span>GetInstancePtr()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_c_safe_logs.html">CSafeLogs</a>* LogFactory::GetInstancePtr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00060">60</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a2a20e26aee872e31ca8650240012ca5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a20e26aee872e31ca8650240012ca5b">&#9670;&nbsp;</a></span>g_SafeLogs</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_safe_logs.html">CSafeLogs</a> &gt; LogFactory::g_SafeLogs</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00065">65</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/log/<a class="el" href="_log_factory_8h_source.html">LogFactory.h</a></li>
<li>H:/project/LibTools/src/log/<a class="el" href="_log_factory_8cpp_source.html">LogFactory.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
